import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/admin/member/index',
    method: 'get',
    params: query
  })
}

export function createMember(data) {
  return request({
    url: '/admin/member/add',
    method: 'post',
    data
  })
}

export function updateMember(data) {
  return request({
    url: '/admin/member/edit',
    method: 'post',
    data
  })
}

export function balance(data) {
  return request({
    url: '/admin/member/balance',
    method: 'post',
    data
  })
}

export function memberDisable(data) {
  return request({
    url: '/admin/member/disable',
    method: 'post',
    data
  })
}

export function memberEnable(data) {
  return request({
    url: '/admin/member/enable',
    method: 'post',
    data
  })
}

export function delMember(data) {
  return request({
    url: '/admin/member/del',
    method: 'post',
    data
  })
}

